package Thread;

/**
 * @program: javaLearn
 * @description:
 * @author: renhai
 * @Date ：2021/12/21 22:41
 **/
public class MyThread2 extends Thread {

    @Override
    public void run() {
        for (int i = 0; i < 30; i++) {
            if (i % 5 == 2) {
                this.yield();
            }
            System.out.println(111);
        }
    }
}
